package com.travelsmart.client.apresentacao.view.subview;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.travelsmart.client.apresentacao.i18n.I18nMessages;
import com.travelsmart.client.apresentacao.view.BaseView;
import com.travelsmart.client.bean.to.HotelTO;

//# EXERC. 4 TODO: Exercicio 4
public class ViewInfoDetalhesHotel extends BaseView {
	private final VerticalPanel vPanelViewInfoDetalhesHotel = new VerticalPanel();
	public ViewInfoDetalhesHotel(){
		super(new HTML());
		initWidget(vPanelViewInfoDetalhesHotel);
	}
	
	public void exec(final HotelTO hotel){
		vPanelViewInfoDetalhesHotel.clear();
		vPanelViewInfoDetalhesHotel.add(new HTML(I18nMessages.INSTANCE.informacao_hotel(hotel.getNome(), hotel.getEndereco(), hotel.getCidade(), hotel.getCep())));
		
	}


}
